package com.example.demo;

/**
 * @description:
 * @author: 张德长 dechang.zhang@ucarinc.com
 * @date: 17:43:43 2018/11/20
 * @version:2.0
 */

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    public static String map;

    @RequestMapping(value = "/get")
    public String say() {
        return map;
        //        return "index";
    }

    @RequestMapping(value = "/setAg")
    public String setAg(String data) {
        map = data;
        return "";
    }
}
